package com.example.service.serviceImple;

import com.example.mapper.one.UserMapper;
import com.example.pojo.User;
import com.example.service.UserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class UserServiceImple implements UserService {

//    自动装配
    @Resource
    UserMapper userMapper;

    @Override
    public User queryUser(String username, String password) {
        return userMapper.login(username,password);
    }

    public User findUserById(String uId) {
        return userMapper.getUserById(uId);
    }

}
